
#include "net.h"
#include "timer_object.h"

using namespace WtfEngine;


PartyBroadcastMessage Party::CreateBroadcastMessage() const {
	PartyBroadcastMessage msg;
				
	msg.uCurrentPartySize = mvPeerList.size();
	msg.uMinPartySize = muMinSize;
	msg.uMaxPartySize = muMaxSize;
	msg.uGameId = muGameId;
	msg.iGameType = miGameType;
	msg.wControlPort = PeerManager::GetInstance().getControlSocket()->getPort();
	msg.wDataPort = PeerManager::GetInstance().getDataSocket()->getPort();

	return msg;
};
